package com.itsm.example;

import com.itsm.example.statemachine.factory.StateMachineEngine;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class StatemachineDemoApplication implements ApplicationRunner {

    public static void main(String[] args) {
        SpringApplication.run(StatemachineDemoApplication.class, args);
    }

    @Autowired
    private StateMachineEngine stateMachineEngine;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        stateMachineEngine.init();
    }
}
